import request from '@/utils/request'

// 菜单列表
export function getMenu(params: any) {
  return request({
    url: '/v1/admin/system/menuList',
    method: 'get',
    params: params
  })
}

// 新增-菜单列表
export function addMenu(data: any) {
  return request({
    url: '/v1/admin/system/addMenu',
    method: 'post',
    data: data
  })
}

// 修改-菜单列表
export function editMenu(data: any) {
  return request({
    url: '/v1/admin/system/updateMenu',
    method: 'put',
    data: data
  })
}

// 删除-菜单列表
export function deleteMenu(data: any) {
  return request({
    url: '/v1/admin/system/deleteMenu',
    method: 'delete',
    data: data
  })
}

// JILI游戏
export function getJiliGame(params: any) {
  return request({
    url: '/v1/config/getSlotPlatFormGame',
    method: 'get',
    params: params
  })
}
// JILI可查询的ID
export function getJiliId(params: any) {
  return request({
    url: '/v1/config/getSlotResultDataId',
    method: 'get',
    params: params
  })
}
// JILI可查询的RTP效果
export function getJiliRtp(params: any) {
  return request({
    url: '/v1/config/getSlotRtpEffect',
    method: 'get',
    params: params
  })
}

// JILI新增玩家模拟下注---回折线图数据
export function getJiliLineChart(data: any) {
  return request({
    url: '/v1/config/getSlotResultData',
    method: 'post',
    data: data
  })
}
// 删除JILI
export function deleteJili(data: any) {
  return request({
    url: '/v1/config/slotResultDelete',
    method: 'delete',
    data: data
  })
}

// 货币配置
export function getCurrencyList(params: any) {
  return request({
    url: '/v1/config/getCurrencyList',
    method: 'get',
    params: params
  })
}
// 货币配置-新增
export function addCurrency(data: any) {
  return request({
    url: '/v1/config/addCurrency',
    method: 'post',
    data: data
  })
}
// 货币配置-修改
export function editCurrency(data: any) {
  return request({
    url: '/v1/config/updateCurrency',
    method: 'post',
    data: data
  })
}
// 货币配置-删除
export function delCurrency(data: any) {
  return request({
    url: '/v1/config/delCurrency',
    method: 'delete',
    data: data
  })
}
// 货币汇率
export function getExchangeList(params: any) {
  return request({
    url: '/v1/config/getCurrencyExchangeRateList',
    method: 'get',
    params: params
  })
}
// 修改-货币汇率
export function editExchange(data: any) {
  return request({
    url: '/v1/config/updateCurrencyExchangeRate',
    method: 'post',
    data: data
  })
}

// 获取爆池记录
export function getExplosionList(params: any) {
  return request({
    url: '/v1/config/getGamePoolChangeLogList',
    method: 'get',
    params: params
  })
}
// 获取奖池/白名单修改记录
export function getPrizeWhitelistList(params: any) {
  return request({
    url: '/v1/config/getPrizePoolControlRecordList',
    method: 'get',
    params: params
  })
}

// 获取爆池白名单
export function getPoolPrizeWhite(params: any) {
  return request({
    url: '/v1/config/getPoolPrizeWhiteList',
    method: 'get',
    params: params
  })
}
// 新增爆池白名单
export function addExplosionWhitelis(data: any) {
  return request({
    url: '/v1/config/addPrizePoolWhiteUser',
    method: 'post',
    data: data
  })
}
// 删除爆池白名单
export function deleteExplosionWhitelis(data: any) {
  return request({
    url: '/v1/config/deletePrizePoolWhiteUser',
    method: 'post',
    data: data
  })
}

// 获取奖池额度
export function getPrizeLimit(params: any) {
  return request({
    url: '/v1/config/getPrizePool',
    method: 'get',
    params: params
  })
}
// 编辑奖池
export function editPrize(data: any) {
  return request({
    url: '/v1/config/editCSlotsPgGame',
    method: 'post',
    data: data
  })
}
// 奖池金额修改
export function editPrizeAmount(data: any) {
  return request({
    url: '/v1/config/addExtraGamePrizePool',
    method: 'post',
    data: data
  })
}
// 批量修改奖池
export function editBatchPool(data: any) {
  return request({
    url: '/v1/config/batchUpdatePrizePoolWitch',
    method: 'put',
    data: data
  })
}
// 获取奖池数据
export function getPrizeLimitInfo(params: any) {
  return request({
    url: '/v1/config/getPrizePoolMapData',
    method: 'get',
    params: params
  })
}

// 全球服的所有服务器名称(名称简化--回显【全球服】)
export function getGlobalServerName(params: any) {
  return request({
    url: '/v1/config/getGlobalServerName',
    method: 'get',
    params: params
  })
}
// 全球服的所有服务器名称(完全版-所有字段)
export function getGlobalServer(params: any) {
  return request({
    url: '/v1/config/getGlobalServer',
    method: 'get',
    params: params
  })
}
// 新增全球服名称
export function addGlobalService(data: any) {
  return request({
    url: '/v1/config/addGlobalServer',
    method: 'post',
    data: data
  })
}
// 编辑全球服名称
export function editGlobalService(data: any) {
  return request({
    url: '/v1/config/updateGlobalServer',
    method: 'put',
    data: data
  })
}
// 删除全球服名称
export function delGlobalService(data: any) {
  return request({
    url: '/v1/config/getGlobalServer',
    method: 'put',
    data: data
  })
}

// 第三方配置
export function getThirdPlatform(params: any) {
  return request({
    url: '/v1/config/getThirdPlatform',
    method: 'get',
    params: params
  })
}
// 新增-第三方配置
export function addThirdPlatform(data: any) {
  return request({
    url: '/v1/config/addThirdPlatform',
    method: 'post',
    data: data
  })
}
// 编辑-第三方配置
export function editThirdPlatform(data: any) {
  return request({
    url: '/v1/config/updateThirdPlatform',
    method: 'put',
    data: data
  })
}
// 删除-第三方配置
export function delThirdPlatform(data: any) {
  return request({
    url: '/v1/config/delThirdPlatform',
    method: 'delete',
    data: data
  })
}